home *** CD-ROM | disk | FTP | other *** search
/ New Masters of Flash / New Masters of Flash.iso / pc / MOVIES / 16.dir / 00270_Text_text07.txt < prev    next >
Text File  |  2000-10-01  |  1KB  |  13 lines

  1. Create a new blank key frame next to the key frame youΓÇÖve just created. This one should be right above the first frame of the animation of the queen sinking down: Add this command:
  2.  
  3. /:score = /:score - 1;
  4.  
  5. This removes one point from the score since the queen is being lowered down (either by the user clicking on it or by another queen attacking it). Finally, add a key frame to the last frame in the ActionScript layer. It needs this command:
  6.  
  7. gotoAndPlay (ΓÇ£downΓÇ¥);
  8.  
  9. This command will reset the queen and prepare it to be raised again if need be. ThatΓÇÖs it for this movie. Now that youΓÇÖre finished with it, you can go back to the main timeline and delete the original layer that you imported this queen from (which is now a movie symbol in your Library.)
  10. The best part of this is that you get to do it all again for the remaining three queens. Just repeat the instructions for making the queens movie for each of them, and insert the same action scripts.
  11.  
  12. So, in the end, you should have a blank main movie, one movie symbol and eight individual queen static symbols per queen animation. Each of those symbols should be a different movie clip containing the four queens and their respective ActionScripts.
  13.